package com.xiaochi.subject.domain.convert;

import com.xiaochi.subject.domain.entity.SubjectInfoBO;
import com.xiaochi.subject.domain.entity.SubjectLabelBO;
import com.xiaochi.subject.domain.entity.SubjectOptionBO;
import com.xiaochi.subject.infra.basic.entity.SubjectInfo;
import com.xiaochi.subject.infra.basic.entity.SubjectLabel;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author zqx
 * @since 2024/7/20
 */
@Mapper
public interface SubjectInfoConverter {

    SubjectInfoConverter INSTANCE = Mappers.getMapper(SubjectInfoConverter.class);

    SubjectInfo InfoBoToInfo(SubjectInfoBO subjectInfoBO);

    List<SubjectInfoBO> InfoListToInfoBoList(List<SubjectInfo> subjectInfoList);

    SubjectInfoBO optionBOAndInfoToInfoBo(SubjectOptionBO subjectOptionBO, SubjectInfo subjectInfo);

}
